import request from '@/utils/http.js'

const appkey = 'U2FsdGVkX19WSQ59Cg+Fj9jNZPxRC5y0xB1iV06BeNA='

export const getBanner = (params) => {
	if(!params) {
		params = { appkey }
	} else {
		params['appkey'] = appkey
	}
	return request({
		method: 'GET',
		url: '/banner',
		params
	})
}

export const getHotPro = (params) => {
	if(!params) {
		params = { appkey }
	} else {
		params['appkey'] = appkey
	}
	return request({
		method: 'GET',
		url: '/typeProducts',
		params
	})
}